package com.muqi.app.qlearn.mine;

import com.muqi.app.qlearn.student.BaseWindowActivity;
import com.muqi.app.qlearn.student.R;

import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;


public class UserMenuActivity extends BaseWindowActivity {
	public static final String SELECT_TYPE = "select_type";
	public static final int RESULT_CODE_NAN = 1;
    public static final int RESULT_CODE_NV = 2;
    
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		String type = getIntent().getStringExtra(SELECT_TYPE);
		if(type.equals("sex")){
			setContentView(R.layout.select_for_sex);
		}else{
			finish();
		}
	}
	
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		finish();
		return true;
	}

	public void onSelectNan(View view){
		setResult(RESULT_CODE_NAN);
		finish();
	}
	
	public void onSelectNv(View view){
		setResult(RESULT_CODE_NV);
		finish();
	}

}
